import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { TypeOrmCrudService } from '@crudjs/crud-typeorm';

import { <%= singular(classify(name)) %> } from './<%= singular(name) %>.entity';

@Injectable()
export class <%= classify(name) %>Service extends TypeOrmCrudService<<%= singular(classify(name)) %>> {
  constructor(@InjectRepository(<%= singular(classify(name)) %>) repo) {
    super(repo);
  }
}
